<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/6/14
 * Time: 14:37
 */
namespace app\common\lib;

class Util
{
    /**
     * api输出格式
    */
    public static function show($status, $message = '', $data = [])
    {
        $result =  [
            'status'=> $status,
            'message' => $message,
            'data' => $data
        ];
        echo json_encode($result);
    }
}